<?php

namespace app\common\validate\coupon;

use think\Validate;

class Index extends Validate
{

    	protected $rule = [
            'cid' => ['require', 'number'],
            'busid' => ['require', 'number'],
            'createtime' => ['number'],
            'status' => ['number', 'in:0,1'],
            'receive' => ['number', 'in:0,1']
        ];

     
        protected $message = [
            'cid' => "优惠卷不存在",
            'busid' => "用户不存在",
            'createtime' => "时间出错",
            'status' => "已过期",
            'receive' => "领取失败"
        ];

        protected $scene = [
            'profile' => ['cid','busid']
        ];
}
